<? $current_chanle="activity"; ?>
<?php include('layer/head.html'); ?>
<body class="activity_firstMan">
<?php include('layer/topnav.html'); ?>
<? include('layer/header.html'); ?>
	<div class="contenter">
    	<div class="list">
        	<ul>
                    <?php 
                    $count=count($levelinfo);
                    $nextLevel=1;
                    if($count>0)
                    {
                        $nextLevel=$levelinfo[0]["userlevel"]+1;
                    }
                    ?>                   
            	<li class="after"><span class="icon_rich_level icon_rich_level_<?php echo $nextLevel; ?>"></span><strong>席位空缺中</strong><b>等你来开启</b></li>
                
                <?php
                    if($count>0)
                    {
                        for($i=0;$i<$count;$i++)
                        {
                            if($i==0)
                            {
                                echo '<li class="current"><span class="icon_rich_level icon_rich_level_'.$levelinfo[$i]["userlevel"].'"></span><strong>'.$levelinfo[$i]["nickname"].'</strong><b>'.date("Y/m/d H:i",$levelinfo[$i]["addtime"]).'</b></li>';
                            }
                            else
                            {
                                echo '<li ><span class="icon_rich_level icon_rich_level_'.$levelinfo[$i]["userlevel"].'"></span><strong>'.$levelinfo[$i]["nickname"].'</strong><b>'.date("Y/m/d H:i",$levelinfo[$i]["addtime"]).'</b></li>';
                            }
                        }
                    }
                ?>
                
            </ul>
            <ul class="zhubo">
                
                    <?php 
                    $count=count($liveLevelInfo);
                    $nextLevel=1;
                    if($count>0)
                    {
                        $nextLevel=$liveLevelInfo[0]["id"]+1;
                    }
                    
                    if($nextLevel>30)
                    {
                        $nextLevel=30;
                    }
                    
                    ?>                   
            	<li class="after"><span class="icon_live_level icon_live_level_<?php echo $nextLevel; ?>"></span><strong>席位空缺中</strong><b>等你来开启</b></li>
                
                <?php
                    if($count>0)
                    {
                        for($i=0;$i<$count;$i++)
                        {
                            if($i==0)
                            {
                                echo '<li class="current"><span class="icon_live_level icon_live_level_'.$liveLevelInfo[$i]["id"].'"></span><strong>'.$liveLevelInfo[$i]["nickname"].'</strong><b>'.date("Y/m/d H:i",$liveLevelInfo[$i]["addtime"]).'</b></li>';
                            }
                            else
                            {
                                echo '<li ><span class="icon_live_level icon_live_level_'.$liveLevelInfo[$i]["id"].'"></span><strong>'.$liveLevelInfo[$i]["nickname"].'</strong><b>'.date("Y/m/d H:i",$liveLevelInfo[$i]["addtime"]).'</b></li>';
                            }
                        }
                    }
                ?>
                
 
            </ul>
        </div>
    </div>
    
	<? include('layer/footer.html'); ?>
<? include('layer/foot.html'); ?>
<? include('layer/jsstart.html'); ?>


    
